# -*- coding:utf-8 -*-

"""
function:用来启动更新程序
Author:zhongyuan
"""
from utils.auto_update import AutoUpdate

version_num, update_url = "版本号", "更新接口地址"
try:
    auto_update = AutoUpdate(json_request_url=update_url, version_num=version_num)
    auto_update.update()
except Exception:
    print("程序更新失败!")